package org.example.liaoxuefeng.bridge;


/**
 * Learn Java from https://www.liaoxuefeng.com/
 *
 * @author liaoxuefeng
 */
public class Main {

    public static void main(String[] args) {
        RefinedCar car1 = new BossCar(new HybridEngine());
        car1.drive();
        RefinedCar car2 = new TinyCar(new ElectricEngine());
        car2.drive();

        // 小米核动力汽车
        RefinedCar car3 = new XiaoMiCar(new NuclearEngine());
        car3.drive();

    }
}
